package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblDisecorolAnnexDao;
import com.sinosoft.tcmneim.dataObject.TblDisecorolAnnex;
import com.sinosoft.tcmneim.service.TblDisecorolAnnexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class TblDisecorolAnnexServiceImpl implements TblDisecorolAnnexService {
    @Resource
    private TblDisecorolAnnexDao tblDisecorolAnnexDao;

    @Override
    public List<TblDisecorolAnnex> list() {
        return tblDisecorolAnnexDao.list();
    }

    @Override
    public List<TblDisecorolAnnex> selectByItemCode(String itemCode) {
        return tblDisecorolAnnexDao.selectByItemCode(itemCode);
    }

    @Override
    public int insertSelective(TblDisecorolAnnex tblDisecorolAnnex) {
        return tblDisecorolAnnexDao.insert(tblDisecorolAnnex);
    }


    @Override
    public int updated(TblDisecorolAnnex tblDisecorolAnnex) {
        return tblDisecorolAnnexDao.updated(tblDisecorolAnnex);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblDisecorolAnnexDao.deleteByItemCode(itemCode);
    }
}
